<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.Connection"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%
	String caption=(String) application.getAttribute("caption");
%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%
	String username=null;
	String cookiename=(String) application.getAttribute("cookiename");
	String homelink=(String) application.getAttribute("homelink");
	Cookie[] c=request.getCookies();
	if(c!=null){
		int len=c.length;
		boolean flag=false;
		for(int i=0;i<len;++i){
			if(c[i].getName().equals(cookiename+"-admin")==true){
				username=c[i].getValue();
				flag=true;
			}
		}
		if(flag==false) response.sendRedirect("./login.jsp");
	}else{
		response.sendRedirect("./login.jsp");
	}
%>
<title>管理后台|<%=caption %></title>
</head>
<frameset rows="115px,*">
	<frame id="banner" src="./banner.jsp" />
	<frameset cols="190px,*">
		<frame id="functions" src="./functions.jsp" />
		<frame id="main" name="main" src="./func/none.jsp" />
	</frameset>
</frameset>
</html>